import request from '@/utils/request'

// 网络设备信息新增
export function antiHomingInfoAdd(data) {
    return request({
        url: '/antiHoming/info/add',
        method: 'post',
        data: data
    })
}
// 确定风险页数据查询
export function riskPageQuery(data) {
    return request({
        url: '/antiHoming/info/riskPageQuery',
        method: 'post',
        data: data
    })
}
// 节点关系初始化查询
export function antiHomingInfoList(data) {
    return request({
        url: '/antiHoming/info/list',
        method: 'post',
        data: data
    })
}
// 抗归属任务新增
export function addCombatAtlasTask(data) {
    return request({
        url: '/antiHoming/info/addCombatAtlasTask',
        method: 'post',
        data: data
    })
}
// 分页查询抗归属任务
export function selectCombatAtlasTaskList(data) {
    return request({
        url: '/antiHoming/info/selectCombatAtlasTaskList',
        method: 'post',
        data: data
    })
}

// 分页查询抗归属任务——new
export function selectCombatAtlasTaskListNew(data) {
    return request({
        url: '/combat/atlastask/list',
        method: 'get',
        params: data
    })
}
// 根据id 删除抗归属任务
export function deleteCombatAtlasTaskById(id) {
    return request({
        url: '/antiHoming/info/deleteCombatAtlasTaskById/' + id,
        method: 'get'
    })
}
// 根据id 删除抗归属任务
export function deleteCombatAtlasTaskByIdNew(id) {
    return request({
        url: '/combat/atlastask/' + id,
        method: 'delete'
    })
}
// 根据id 查询抗归属任务
export function getCombatAtlasTaskByIdNew(id) {
    return request({
        url: '/combat/atlastask/' + id,
        method: 'get'
    })
}
// 分页查询预测组织和节点的关系
export function predictRelationship(data) {
    return request({
        url: '/antiHoming/info/predictRelationship',
        method: 'post',
        data: data
    })
}
// 预测IP-组织归属关系抗归属
export function predictAntiHomingInfo(data) {
    return request({
        url: '/antiHoming/info/predictAntiHomingInfo',
        method: 'post',
        data: data
    })
}
// IP-组织关系确定的抗归属
export function antiHomingInfo(data) {
    return request({
        url: '/antiHoming/info/antiHomingInfo',
        method: 'post',
        data: data
    })
}
// IP-组织关系确定的抗归属-new
export function antiHomingInfoNew(data) {
    return request({
        url: '/antiHoming/info/combatAtlasTask',
        method: 'post',
        data: data
    })
}
// 终止抗归属任务
export function stopCombatAtlasTask(id) {
    return request({
        url: '/antiHoming/info/stopCombatAtlasTask/' + id,
        method: 'get'
    })
}
// 根据Id查询抗归属任务详情
export function selectCombatAtlasTaskById(id) {
    return request({
        url: '/antiHoming/info/selectCombatAtlasTaskById/' + id,
        method: 'get'
    })
}
// 抗归属风险统计
export function riskStatistics() {
    return request({
        url: '/antiHoming/info/riskStatistics',
        method: 'get'
    })
}
// 查询所有组织
export function getAllOrg() {
    return request({
        url: '/antiHoming/info/getAllOrg',
        method: 'get'
    })
}

export function getInfoByIp(data) {
    return request({
        url: '/antiHoming/info/getInfoByIp',
        method: 'get',
        params: data
    })
}

//课题四一进来大屏展示的数据

export function initDatasi(){
    return request({
        url: '/antiHoming/info/screen',
        method: 'get'
    })
}